import 'package:flutter/cupertino.dart';
import 'package:thinking/config/_.dart';
import 'package:thinking/utils/_.dart';

///只做展示作用的搜索框

class ShowSearchWidget extends StatelessWidget{

  final double height;
  final Color backgroundColor;
  final Color textColor;
  final String textVal;

  const ShowSearchWidget({this.height:38,this.backgroundColor:ColorConfig.WhiteBackColor,this.textColor:ColorConfig.TextColor,this.textVal:'搜索think'});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: height,
      decoration: BoxDecoration(
        color: backgroundColor,
        borderRadius: BorderRadius.all(Radius.circular(20))
      ),
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        verticalDirection: VerticalDirection.up,
        children: <Widget>[
          SizedBox(width: 25,),
          Expanded(
            child: Text(
              textVal,
              style: TextStyle(
                color: textColor,fontSize: Screen.setFontSize(16)
              ),
            ),
          )
        ],
      ),
    );
  }

}